home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 401-425 / disk_415 / filetypes / filetypes.doc < prev    next >
Text File  |  1992-05-06  |  4KB  |  103 lines

  1. FileTypes V2.1
  2.  
  3. FileTypes is a programme designed to identify different types of files (IFF,
  4. executable) in a directory.
  5.  
  6. Usage: FileTypes [Directoryname|Filename] [e i d u]
  7. or
  8.        FileTypes ?
  9.        (quick reference)
  10.  
  11. The programme will print the names of all entries of the specified directory
  12. plus a type description. If the first name on the command line is a filename,
  13. it will only print the type of that file. Names containing spaces (" ") must
  14. be enclosed in quotation marks. If no name is specified, the contents of the
  15. current directory (set using CD) will be printed to the screen.
  16.  
  17. Examples:
  18.  
  19. FileTypes df0:Data
  20. will print a list of all entries in df0:Data plus type descriptions
  21.  
  22. FileTypes "df0:Data 2"
  23. will print a list of all entries in df0:Data 2 plus type descriptions
  24.  
  25. In this version the programm can recognize IFF-files (all types) and excecu-
  26. tables.
  27.  
  28. The key characters:
  29.  
  30. After the name of a directory or file one or more key characters (of e, i, d
  31. and u) may be given. The programme will in that case only print files which
  32. are of one of the types specified by the key characters. e means executable
  33. (e.g a programme that can be run by typing its name in the CLI), i means IFF,
  34. d means directory and u means unknown. N.B.: All key characters must be sepa-
  35. rated by spaces!
  36.  
  37. Examples:
  38. FileTypes df0:Data e
  39. will print a list of all executable files in df0:Data plus their type descrip-
  40. tion
  41.  
  42. FileTypes df0:Data e i
  43. will print a list of all executable and IFF files in df0:Data plus their type
  44. description
  45.  
  46. N.B.: The name of the directory or file MUST be the first parameter in the
  47. command line! If you want to read the current directory with some key charac-
  48. ters set, the filename must be given as an empty string ( "" ), or the pro-
  49. gramme will consider the first key character to be the directory name.
  50.  
  51. Example:
  52. FileTypes "" e d
  53. will print a list of all executable and IFF files in the current directory
  54. plus their type description
  55.  
  56. The length of the programme:
  57.  
  58. In the quick reference you will find the line
  59.  
  60. Lenght of this executable: xxxx Bytes (actual lenght depends on version)
  61.  
  62. This will give you the correct lenght of the executable file "FileTypes" as
  63. for example printed by the CLI's List command. It is provided as a (far from
  64. safe) protection from link viruses. If this length and the lenght given for
  65. example by the List command are not the same then the executable has probably
  66. been altered and you should scan your system for a link virus. However, the
  67. correct length of the executable does not always mean it is clean, so be care-
  68. ful!
  69.  
  70.  
  71. My adress:
  72. Sebastian Leske
  73. Bergerhauserstr. 17a
  74. 4300 Essen 1
  75. Germany/Deutschland
  76.  
  77. Bug reports, letters of thanks, contributions etc. are of course welcome 
  78. (haven't I read that already somewhere else?).
  79. (I wrote this programme mainly for fun and for my own needs, so don't have a
  80. bad conscience if you don't send money, but I would like a bit of feedback.)
  81.  
  82. PS:
  83. This programme may be freely distributed and changed (especially improved!)
  84. as long as my name is mentioned. If someone makes any changes, please send me
  85. a note.
  86.  
  87. Enjoy!
  88.  
  89.  
  90. Technical specifications:
  91.  
  92. This programme was written in assembly language and assembled using the
  93. DevPac assembler V2.0 from HiSoft.
  94. The programme identifies executable files if they start with the longword
  95. $3F3. IFF files must start with the string "FORM", then the programme will
  96. read the Bytes #8-11 and print them as the IFF type (that's why it can re-
  97. cognize all IFF types).
  98. I am not perfectly sure whether this is the correct way to check for the
  99. types (especially the IFF standard is very complicated), so I would appreci-
  100. ate any comments concerning that matter.
  101.  
  102.  
  103.